package me.dengfengdecao.demo.component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Created by dengfengdecao on 16/9/27.
 */
@Component
@Order(2)
public class MyStartupRunner2 implements CommandLineRunner {

    public static final Logger log = LoggerFactory.getLogger(MyStartupRunner2.class);

    @Override
    public void run(String... args) throws Exception {
        log.debug("run: 服务启动执行，执行加载数据等操作");
    }
}
